package com.fanxing.generics;

import java.lang.reflect.Field;
import java.lang.reflect.Method;

public class Test08 {
    public static void main(String[] args) {
        for (Field declaredField : G11.class.getDeclaredFields()) {
            System.out.println(declaredField.getName()+":"+declaredField.getType().getSimpleName());
        }
        // G11<Long> g11 = new G11();
        System.out.println("=========");
        for (Method declaredMethod : G11.class.getDeclaredMethods()) {
            System.out.println(declaredMethod.getName() + ":" + declaredMethod.getReturnType().getSimpleName());
        }
    }
}

class G11 <T extends Number>{

    T t;

    public <K extends Number> K getValue(K value){
        return value;
    }
}
